package sun.it.service.impl;

import sun.it.dao.UserDao;
import sun.it.dao.impl.UserDaoimpl;
import sun.it.domain.User;
import sun.it.service.UserService;

import java.util.List;

public class UserServiceimpl implements UserService {
    private UserDao userDao=new UserDaoimpl();
    @Override
    public User CheckLogin(User user) {
        User users = userDao.CheckLogin(user);
        return users;
    }

    @Override
    public int Regised(User user) {
        return userDao.Regised(user);
    }

    @Override
    public String LookupPas(String username) {

        return userDao.LookupPas(username);
    }

    @Override
    public int UpdateUP(User user) {
        return userDao.UpdateUP(user);
    }
}
